import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
    name: 'boolReform',
    pure: false
})
// bool值转换通道
export class BooleanPipe implements PipeTransform {
    transform(value: boolean, args?: any): any {
        let chineseSex;
        if (value === true) {
            chineseSex = '是';
        } else {
            chineseSex = '否';
        }
        return chineseSex;
    }
}